﻿using System.IO;

namespace FileWatcher.NodeInfo
{
    public class FileNodeInfo : NodeInfoBase, IFileNodeInfo
    {
        private FileInfo m_fileInfo;

        public long Modified
        {
            get { return this.m_fileInfo.LastWriteTime.ToFileTime(); }
        }

        public long Size
        {
            get { return this.m_fileInfo.Length; }
        }

        public FileNodeInfo(string path)
            : base(path)
        {
            this.m_fileInfo = new FileInfo(path);
        }
    }
}